/************************************************************
 * Project Name         [Thinking_In_Java]
 * File Name            [SnakeLauncher.java]
 * Creation Date        [21-Jul-2014]
 * 
 * Copyright© ge.y.yang@gmail.com All Rights Reserved
 * 
 * Work hard, play harder, think big and keep fit
 ************************************************************/
package pkg_03_game.greedysnake_V2.launcher;

import javax.swing.JFrame;
import javax.swing.JLabel;

import pkg_03_game.greedysnake_V2.controller.Controller;
import pkg_03_game.greedysnake_V2.model.Food;
import pkg_03_game.greedysnake_V2.model.Ground;
import pkg_03_game.greedysnake_V2.model.Snake;
import pkg_03_game.greedysnake_V2.view.GamePanel;
import pkg_03_game.greedysnake_V2.view.MainFrame;

/**
 * 
 * @author 不落的太阳(Sean Yang)
 * @version 1.0
 * @since JDK 6
 * 
 */
public class SnakeLauncher {

	public static void main(String[] args) {
		try {
			MainFrame frame = new MainFrame(new Controller(new Snake(),
					new Food(), new Ground(), new GamePanel(), new JLabel()));
			frame.setVisible(true);
			frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
